﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ThridGroup.ERP.DTO.WarehouseManagement;

namespace ThridGroup.ERP.WarehouseManagement
{ 
    /// <summary>
    /// 外协入库接口
    /// </summary>
    public  interface IOutsourcingWarehousingServices
    { 

        /// <summary>
        /// 添加外协入库
        /// </summary>
        /// <param name="createOutsourcingWarehousingDto"></param>
        /// <returns></returns>
       Task<int>AddOutsourcingWarehousingAsync(CreateOutsourcingWarehousingDto createOutsourcingWarehousingDto);

        /// <summary>
        /// 获取外协入库分页列表
        /// </summary>
        /// <param name="query">查询条件</param>
        /// <returns>数据列表和总条数</returns>
        Task<(List<OutsourcingWarehousingListDto> data, int total)> GetListAsync(QueryOutsourcingWarehousingDto query);
       
        /// <summary>
        /// 批量删除
        /// </summary>
        Task<int> BatchDeleteAsync(List<int> ids);

        /// <summary>
        /// 修改单据状态
        /// </summary>
        Task<int> UpdateStateAsync(int id, int state);

        /// <summary>
        /// 根据ID获取外协入库详情（反填）
        /// </summary>
        Task<OutsourcingWarehousingListDto> GetByIdAsync(int id);

        /// <summary>
        /// 修改外协入库
        /// </summary>
        Task<int> UpdateAsync(int id, CreateOutsourcingWarehousingDto dto);

        /// <summary>
        /// 删除单个外协入库
        /// </summary>
        Task<int> DeleteAsync(int id);

                    
    }
}
